package com.course.dao;

import com.course.model.CourseOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CourseOrderDao {

    /**
     * 获取订单
     * @param userId
     * @param courseId
     * @return
     */
    CourseOrder findByUserCourse(@Param("userId") Integer userId, @Param("courseId")Integer courseId);

    Integer save(CourseOrder co);
}
